import java.util.Scanner;

public class demo02 {
    //求最小公倍数
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int b=sc.nextInt();
        int num=min(a,b);
        int n=a*b/num;
        System.out.println(n);
    }
    public static int min(int a,int b){
        if(a==b){
            return a;
        }
        if(a<b){
            int tmp=a;
            a=b;
            b=tmp;
        }
        int c=a%b;
        while (c>0){
            a=b;
            b=c;
            c=a%b;
        }
        return b;
    }
}
